home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Booting Gallery / Booting Gallery (source) / (Libraries) / Fluent Libraries / Utils / Semaphore.h < prev    next >
Encoding:
Text File  |  1996-06-22  |  309 b   |  24 lines  |  [TEXT/BROW]

  1. // Semaphore.h
  2. // Created by Bill Hubauer on Sun, May 28, 1995 @ 7:13 PM.
  3.  
  4. #ifndef __Semaphore__
  5. #define __Semaphore__
  6.  
  7.  
  8. class CSemaphore
  9. {
  10. public:
  11.     CSemaphore();
  12.     virtual ~CSemaphore();
  13.     
  14.     Boolean        Grab();
  15.     void        Release();
  16.     
  17.     Boolean        InUseQ()            {return _inUseQ;}
  18.     
  19. protected:
  20.     Boolean        _inUseQ;
  21. };
  22.  
  23. #endif
  24.